package com.dabai.iot.core.dubbo;

import com.dabai.iot.core.api.RemoteDeviceService;
import com.dabai.iot.core.entity.DeviceEntity;
import com.dabai.iot.core.service.IDeviceService;
import lombok.RequiredArgsConstructor;
import org.apache.dubbo.config.annotation.DubboService;
import org.springframework.stereotype.Service;

/**
 * 设备服务 实现类
 *
 * @author kev1n
 */
@Service
@DubboService
@RequiredArgsConstructor
public class RemoteDeviceServiceImpl implements RemoteDeviceService {

    private final IDeviceService deviceService;

    @Override
    public DeviceEntity getDeviceCacheBySn(String productKey, String deviceSn) {
        return deviceService.getDeviceCacheBySn(productKey, deviceSn);
    }

}
